<?php
if(empty($_GET['category_id']))
{
$where[0][0]='category_type';
$where[0][1]=9;
$where[0][2]='=';
$category_data = get_sql('category','category_id',$where,NULL);

}
else
{
	$where[0][0]='category_id';
	$where[0][1]=$_GET['category_id'];
	$where[0][2]='=';
	$category_data = get_sql('category','category_id',$where,NULL);	
	$category_data=current($category_data);
	$category_serial=unserialize($category_data['serial']);

	$category_name=$category_data['category_name'];
	
	////rp($category_serial);
}


////rp($values);
if(!empty($_GET['content_id']))
{
$where[0][0]='category_id';
$where[0][1]=$values[0]['content_category'];
$where[0][2]='=';
$category_info = get_sql('category','category_id',$where,NULL);
$category_info = current($category_info);
}

////rp($category_info);
?>